<template>
  <div>
    <div class="sousuo">
      <div class="inp">
        <router-link class="iconfont icon-cross-fill" tag="i" to="/index"></router-link>
        <van-search v-model="value" class="search" placeholder="请输入宝贝名称" @search="SearchValue"></van-search>
      </div>
      <!-- 最近搜索 -->
      <div class="zuijin">
        <span>最近搜索</span>
        <i class="iconfont icon-shanchu" @click="confirm()"></i>
      </div>
      <!-- 记录 -->
      <div class="latelywrap">
        <div class="lately">
          <span>女鞋</span>
        </div>
        <div class="lately">
          <span>连衣裙</span>
        </div>
      </div>

      <div class="hot">
        <span>热门搜索</span>
      </div>

      <!-- 记录 -->
      <div class="latelywrap">
        <div class="lately">
          <span>大码女装</span>
        </div>
        <div class="lately">
          <span>连衣裙</span>
        </div>
        <div class="lately">
          <span>电脑</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import { Search, Dialog } from "vant";
Vue.use(Search);
Vue.use(Dialog);

export default {
  components: {},
  data() {
    return {
      value:''
    };
  },
  methods: {
    confirm() {
      Dialog.confirm({
        title: "你确认要删除吗",

      })
        .then(() => {
          // on confirm

        })
        .catch(() => {
          // on cancel
        });
    },
    SearchValue(){
      
    }
  },
};
</script>

<style lang="scss" scoped>
.sousuo {
  padding: 0 1rem 1.5rem;
  .inp {
    height: 5rem;
    line-height: 5rem;
    border-bottom: 1px solid #efefef;
    .icon-cross-fill {
      float: left;
      font-size: 2.5rem;
      margin: 0 1rem;
    }
    .search {
      height: 5.4rem;
      line-height: 5rem;
      font-size: 3rem;
      input :nth-last-of-type() {
        font-size: 2rem;
      }
    }
  }
  .zuijin,
  .hot {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    .icon-shanchu {
      font-size: 2rem;
    }
  }
}
.latelywrap {
  width: 100%;
  .lately {
    width: 26%;
    height: 3.5rem;
    color: #717376;
    border: 1px solid #efefef;
    border-radius: 1.64rem;
    font-size: 1.4rem;
    text-align: center;
    overflow: hidden;
    line-height: 3.5rem;
    margin-right: 1.3%;
    margin-left: 1.3%;
    margin-bottom: 1.2rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    float: left;
  }
}
.hot {
  clear: both;
}
</style>
